package mapping

import (
	"maya-service/model"
	"maya-service/model/entity"
)

// GuideIconsEntityToDto entity data transfer
func GuideIconsEntityToDto(guideIcons []*entity.GuideIcon) []*model.GuideIconInfo {
	out := make([]*model.GuideIconInfo, 0, len(guideIcons))
	for _, c := range guideIcons {
		out = append(out, GuideIconEntityToDto(c))
	}
	return out
}

// GuideIconEntityToDto entity data transfer
func GuideIconEntityToDto(e *entity.GuideIcon) *model.GuideIconInfo {
	return &model.GuideIconInfo{

		Id: e.Id,

		ConfigKey: e.ConfigKey,

		Label: e.Label,

		ConfigValue: e.ConfigValue,

		Action: e.Action,

		TagMenu: e.TagMenu,

		SmallIcon: e.SmallIcon,

		BigIcon: e.BigIcon,

		Tag: e.Tag,

		Sort: e.Sort,

		BanStatus: e.BanStatus,

		CreatedAt: e.CreatedAt,

		UpdatedAt: e.UpdatedAt,
	}
}
